package com.level.system.controller;


import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.level.base.BaseController;
import com.level.system.base.ResponseBean;
import com.level.system.entity.VO.QcContrastRuleVO;
import com.level.system.service.IQcResultService;

import io.swagger.annotations.ApiOperation;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhaocw
 * @since 2019-06-14
 */
@RestController
@RequestMapping("/qc-result")
public class QcResultController extends BaseController {
	
	@Autowired
	private IQcResultService iQcResultService;
	
	
	@RequestMapping(value="/contrastRuleResult",method= RequestMethod.POST)
	@ApiOperation(value="根据ID更新 QcRule 表用户", notes="备注: 仅200有正确返回")
	@SuppressWarnings("all")
	public <T> ResponseBean<List<Map<String,Object>>> contrastRule(QcContrastRuleVO VO){
//		return ResponseBean.success("成功",iQcResultService.list(new QueryWrapper<QcResult>().eq(true, "STATUS", "0").eq(true, "PATIENTID", VO.getPATIENTID())));
		return ResponseBean.success("成功",iQcResultService.getQcResultList(VO));
	}
}

